/**
 * @(#)TimeModelParentTempleteDAOImpl.java 2017年2月9日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.ITimeModelTempleteDAO;
import org.jsbd.boss.domian.channel.TimeBaseModel;
import org.jsbd.boss.domian.channel.TimeModelTemplete;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 基础模板
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class TimeModelTempleteDAOImpl extends CrackBaseDao implements ITimeModelTempleteDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(TimeModelTempleteDAOImpl.class);

	@Override
	public Integer insertTemplete(TimeModelTemplete templete) {
		return super.update("qy_time_model_template.INSERT_MODEL_TEMPLETE", templete);
	}

	@Override
	public List<TimeModelTemplete> selectTemplete(TimeModelTemplete form) {
		return super.queryForList("qy_time_model_template.GET_LIST", form);
	}

	@Override
	public Integer updateTemplete(TimeModelTemplete templete) {
		return super.update("qy_time_model_template.UPDATE_TIME_MODEL", templete);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.jsbd.boss.dao.ITimeModelTempleteDAO#selectAllBaseModel()
	 */
	@Override
	public List<TimeBaseModel> selectAllBaseModel() {
		return super.queryForList("qy_time_model_template.GET_BASE_MODEL");
	}
}
